package org.ddmf.person.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.ddmf.person.model.People;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class PeopleDaoImpl extends SqlMapClientDaoSupport implements PeopleDao{

	@SuppressWarnings("unchecked")
	public List<People> queryPeopleByUsername(String username) {
		Map<String,String> cretia = new HashMap<String, String>();
		cretia.put("NAMES",username+'%');
		List<People> list = getSqlMapClientTemplate().queryForList("PeopleSql.queryPeopleByCretia", cretia);
	
		return list;
		
	}

}
